package org.southyin.value;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("DBUtils")
public class DBUtils {
    @Value("${mysql.driverClassName}")
    private String driver;
    @Value("${mysql.url}")
    private String url;

    @Override
    public String toString() {
        return "DBUtils{" +
                "driver='" + driver + '\'' +
                ", url='" + url + '\'' +
                '}';
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
